home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / MPW / GCC 1.37.1r15 / Tests / float-const.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-03-03  |  180 b   |  13 lines  |  [TEXT/MPS ]

  1. #include <stdio.h>
  2.  
  3. void main()
  4. {
  5.     int i;
  6.     long double x = 0.0;
  7.     
  8.     fprintf(stdout, "%d\n", sizeof(x));
  9.     for (i = 0; i < 10; ++i) {
  10.         x += 0.5;
  11.     }
  12.     fprintf(stdout, "x = %g\n", x);
  13. }